package cn.zr.aitool.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhengrui on 2018/2/27.
 */
public class TextContent {

    /**
     * log_id : 7893461083213559812
     * direction : 0
     * words_result_num : 4
     * words_result : [{"words":"0支挥自义列麦"},{"words":"c12名称、"},{"words":"数量"},{"words":"3)自定义itom显示内案"}]
     */

    private long log_id;
    private int direction;
    private int words_result_num;
    private List<WordsResultBean> words_result = new ArrayList<>();

    public long getLog_id() {
        return log_id;
    }

    public void setLog_id(long log_id) {
        this.log_id = log_id;
    }

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    public int getWords_result_num() {
        return words_result_num;
    }

    public void setWords_result_num(int words_result_num) {
        this.words_result_num = words_result_num;
    }

    public List<WordsResultBean> getWords_result() {
        return words_result;
    }

    public void setWords_result(List<WordsResultBean> words_result) {
        this.words_result = words_result;
    }

    public String getWords(){
        StringBuilder builder =new StringBuilder();
        for (WordsResultBean bean: words_result){
            builder.append(bean.getWords()).append("\n");
        }
        return builder.toString();
    }

    public static class WordsResultBean {
        /**
         * words : 0支挥自义列麦
         */

        private String words;

        public String getWords() {
            return words;
        }

        public void setWords(String words) {
            this.words = words;
        }
    }
}
